package com.pet.platform.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class Order {
    private Long id;
    private Long userId;
    private String orderNo; // 订单号
    private Long addressId; // 地址ID
    private String paymentMethod; // 支付方式
    private String remark; // 订单备注
    private BigDecimal totalAmount;
    private String status; // PENDING/CONFIRMED/COMPLETED/CANCELLED
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
    
    // 关联的订单项
    private List<OrderItem> orderItems;
}
